Transactions in the MongoDB EF Core Provider
- π
- π 1,350 words
- π 6 minutes
- π¦ Development
- π·οΈ Entity Framework, MongoDB
Database transactions ensure that multi-record (or in our case multi-document) operations either all succeed or all fail together.
This is absolutely critical for data consistency in your applications. EF Core has support for three different types of transactions: implicit, explicit, and ambient.